<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Data-Table 表格</title>
    <link rel="stylesheet" href="../../frame/layui/css/layui.css">
    <link rel="stylesheet" href="../../frame/static/css/style.css">
    <link rel="stylesheet" href="../../css/common.css">
    <style>
        .layui-input-block{
            margin-right: 110px;
        }
        .layui-form{
            margin-top: 50px;
        }
        .userbox{
            padding: 10px;
            border: 1px solid #9F9F9F;
            height: 100px;
            margin: 20px 90px;
        }
        .modelbox{
            margin: 20px 200px;
            text-align: center;
        }
        .modelselet{
            color: #2F4056;
        }
        .person{
            padding: 5px 7px;
            border: 1px solid #9F9F9F;
            cursor: pointer;
            border-radius: 5px;
        }
        .se{
            background-color: #9F9F9F;
            color: white;
        }
        .user{
            margin: 2px 5px;
            padding: 2px 5px;
            background-color: #999999;
            color: white;
            border-radius: 5px;
            cursor: pointer;
        }

    </style>
</head>
<body>
    <div class="modelbox">
        <select class="modelselet" name="platform">
            <option value="Huobi">HuoBi</option>
            <option value="Okex">OKEX</option>
            <option value="ZB">中币</option>
            <option value="BA">币安</option>
            <option value="Gateio">比特儿</option>
        </select>
    </div>
    <div class="middle">
        <input type="hidden" name="type" value="0" id="type">
    </div>
    <div class="layui-form">
        <div class="layui-form-item layui-form-text">
            <div class="layui-input-block">
                <input id="title" placeholder="请输入币种" class="layui-input" name="title" />
            </div>
        </div>
    </div>
    <div class="layui-form-item" style="overflow: hidden;">
        <div class="layui-input-block layui-input-right">
            <button class="layui-btn" lay-submit="" lay-filter="formDemo" id="put">点击测试</button>
        </div>
    </div>

<div class="layui-col-md12">

    <div class="layui-form">
        <div class="layui-form-item layui-form-text">
            <div class="layui-input-block">
                <textarea disabled id="content" placeholder="" class="layui-textarea">测试内容</textarea>
            </div>
        </div>

    </div>
</div>
<script src="../../js/public/jquery-3.1.1.min.js"></script>
<script src="../../js/layer/layer.js"></script>
<script src="../../js/public/common.js"></script>
<script>
    $(function(){
       $('#put').click(function(){
           let platform = $('select[name="platform"]').val();
           let title = $('input[name="title"]').val();
           let data = AjaxForm('admin/CurrencyTest','post',{platform:platform,title:title},2);
           $('#content').text(data);
           console.log(data);
       })
    });

</script>
</body>
</html>